﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Simple.Repository.Migrations
{
    public partial class _4 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "SysStudents",
                columns: table => new
                {
                    Id = table.Column<long>(type: "bigint", nullable: false, comment: "学号")
                        .Annotation("SqlServer:Identity", "1, 1"),
                    StudentName = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false, comment: "名称"),
                    Gender = table.Column<string>(type: "nvarchar(128)", maxLength: 128, nullable: false, comment: "性别"),
                    Age = table.Column<int>(type: "int", nullable: false, comment: "年龄")
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_SysStudents", x => x.Id);
                },
                comment: "学生表");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "SysStudents");
        }
    }
}
